package com.mall.shop.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * spu属性值(ProductAttrValue)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-16 15:11:28
 */
@Getter
@Setter
@TableName("pms_product_attr_value")
@Schema(name = "spu属性值实体", description = "spu属性值映射")
public class ProductAttrValue implements Serializable {
    private static final long serialVersionUID = -97087150265044183L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    @TableField(value = "spu_id")
    @Schema(description = "商品id")
    private Long spuId;
    
    @TableField(value = "attr_id")
    @Schema(description = "属性id")
    private Long attrId;
    
    @TableField(value = "attr_name")
    @Schema(description = "属性名")
    private String attrName;
    
    @TableField(value = "attr_value")
    @Schema(description = "属性值")
    private String attrValue;
    
    @TableField(value = "attr_sort")
    @Schema(description = "顺序")
    private Integer attrSort;
    
    @TableField(value = "quick_show")
    @Schema(description = "快速展示【是否展示在介绍上；0-否 1-是】")
    private Integer quickShow;
    
}

